import { createRouter, createWebHashHistory } from 'vue-router'

// 路由器
const routes = [
    {
        path: '/',
        name: 'login',
        meta: { title: '登录页面' },
        component: () => import('../views/login.vue')
    },
    {
        path: '/index',
        name: 'index',
        component: () => import('../layout/index.vue'),
        children: [
            {
                path: '',
                name: 'index',
                component: () => import('../views/index.vue')
            },
            {
                path: '/completedTasks',
                name: 'completedTasks',
                component: () => import('../views/task/CompletedTasks.vue')
            },
            {
                path: '/pendingTasks',
                name: 'pendingTasks',
                component: () => import('../views/task/pendingTasks.vue')
            },
            {
                path: '/IssuedTasks',
                name: 'IssuedTasks',
                component: () => import('../views/task/IssuedTasks.vue')
            },
            {
                path: '/ProcessDesign',
                name: 'ProcessDesign',
                component: () => import('../views/task/ProcessDesign.vue')
            },
            // 
            {
                path: '/commodityAttribute',
                name: 'commodityAttribute',
                component: () => import('../views/system/commodityAttribute.vue')
            },
            {
                path: '/functionManagement',
                name: 'functionManagement',
                component: () => import('../views/system/functionManagement.vue')
            },
            {
                path: '/InstitutionManagement',
                name: 'InstitutionManagement',
                component: () => import('../views/system/InstitutionManagement.vue')
            },
            {
                path: '/logManagement',
                name: 'logManagement',
                component: () => import('../views/system/logManagement.vue')
            },
            {
                path: '/roleManagement',
                name: 'roleManagement',
                component: () => import('../views/system/roleManagement.vue')
            },
            {
                path: '/systemConfiguration',
                name: 'systemConfiguration',
                component: () => import('../views/system/systemConfiguration.vue')
            },
            {
                path: '/tenantManagement',
                name: 'tenantManagement',
                component: () => import('../views/system/tenantManagement.vue')
            },
            {
                path: '/userManagement',
                name: 'userManagement',
                component: () => import('../views/system/userManagement.vue')
            },
            {
                path: '/salesOrder',
                name: 'salesOrder',
                component: () => import('../views/sales/salesOrder.vue')
            },
            {
                path: '/salesOutbound',
                name: 'salesOutbound',
                component: () => import('../views/sales/salesOutbound.vue')
            },
            {
                path: '/salesReturn',
                name: 'salesReturn',
                component: () => import('../views/sales/salesReturn.vue')
            },
            {
                path: '/RetailOutbound',
                name: 'RetailOutbound',
                component: () => import('../views/retail/RetailOutbound.vue')
            },
            {
                path: '/RetailReturn',
                name: 'RetailReturn',
                component: () => import('../views/retail/RetailReturn.vue')
            },
            {
                path: '/accountStatistics',
                name: 'accountStatistics',
                component: () => import('../views/report/accountStatistics.vue')
            },
            {
                path: '/commodityInventory',
                name: 'commodityInventory',
                component: () => import('../views/report/commodityInventory.vue')
            },

            {
                path: '/customerReconciliation',
                name: 'customerReconciliation',
                component: () => import('../views/report/customerReconciliation.vue')
            },
            {
                path: '/InboundAndOutbound',
                name: 'InboundAndOutbound',
                component: () => import('../views/report/InboundAndOutbound.vue')
            },
            {
                path: '/InboundDetails',
                name: 'InboundDetails',
                component: () => import('../views/report/InboundDetails.vue')
            },
            {
                path: '/InboundSummary',
                name: 'InboundSummary',
                component: () => import('../views/report/InboundSummary.vue')
            },
            {
                path: '/InventoryWarning',
                name: 'InventoryWarning',
                component: () => import('../views/report/InventoryWarning.vue')
            },
            {
                path: '/outboundDetails',
                name: 'outboundDetails',
                component: () => import('../views/report/outboundDetails.vue')
            },
            {
                path: '/outboundSummary',
                name: 'outboundSummary',
                component: () => import('../views/report/outboundSummary.vue')
            },
            {
                path: '/procurementStatistics',
                name: 'procurementStatistics',
                component: () => import('../views/report/procurementStatistics.vue')
            },
            {
                path: '/retailStatistics',
                name: 'retailStatistics',
                component: () => import('../views/report/retailStatistics.vue')
            },
            {
                path: '/salesStatistics',
                name: 'salesStatistics',
                component: () => import('../views/report/salesStatistics.vue')
            },
            {
                path: '/supplierReconciliation',
                name: 'supplierReconciliation',
                component: () => import('../views/report/supplierReconciliation.vue')
            },
            {
                path: '/transferDetails',
                name: 'transferDetails',
                component: () => import('../views/report/transferDetails.vue')
            },
            //producttion
            {
                path: '/BOMManagement',
                name: 'BOMManagement',
                component: () => import('../views/production/BOMManagement.vue')
            },
            {
                path: '/outsourcedTask',
                name: 'outsourcedTask',
                component: () => import('../views/production/outsourcedTask.vue')
            },
            {
                path: '/productionTask',
                name: 'productionTask',
                component: () => import('../views/production/productionTask.vue')
            },
            {
                path: '/purchaseInbound',
                name: 'purchaseInbound',
                component: () => import('../views/prchase/purchaseInbound.vue')
            },
            {
                path: '/purchaseOrder',
                name: 'purchaseOrder',
                component: () => import('../views/prchase/purchaseOrder.vue')
            },
            {
                path: '/purchaseReturn',
                name: 'purchaseReturn',
                component: () => import('../views/prchase/purchaseReturn.vue')
            },
            {
                path: '/inventoryCountingInput',
                name: 'inventoryCountingInput',
                component: () => import('../views/Inventory/inventoryCountingInput.vue')
            },
            {
                path: '/inventoryCountingReview',
                name: 'inventoryCountingReview',
                component: () => import('../views/Inventory/inventoryCountingReview.vue')
            },

            // 
            {
                path: '/customerFollowUp',
                name: 'customerFollowUp',
                component: () => import('../views/Information/customerFollowUp.vue')
            },
            {
                path: '/customerInformation',
                name: 'customerInformation',
                component: () => import('../views/Information/customerInformation.vue')
            },
            {
                path: '/handlerManagement',
                name: 'handlerManagement',
                component: () => import('../views/Information/handlerManagement.vue')
            },
            {
                path: '/IncomeAndExpenseItems',
                name: 'IncomeAndExpenseItems',
                component: () => import('../views/Information/IncomeAndExpenseItems.vue')
            },
            {
                path: '/memberInformation',
                name: 'memberInformation',
                component: () => import('../views/Information/memberInformation.vue')
            },
            {
                path: '/settlementAccount',
                name: 'settlementAccount',
                component: () => import('../views/Information/settlementAccount.vue')
            },
            {
                path: '/supplierInformation',
                name: 'supplierInformation',
                component: () => import('../views/Information/supplierInformation.vue')
            },
            {
                path: '/vehicleManagement',
                name: 'vehicleManagement',
                component: () => import('../views/Information/vehicleManagement.vue')
            },
            {
                path: '/warehouseInformation',
                name: 'warehouseInformation',
                component: () => import('../views/Information/warehouseInformation.vue')
            },

            // 仓库
            {
                path: '/assemblyOrder',
                name: 'assemblyOrder',
                component: () => import('../views/house/assemblyOrder.vue')
            },
            {
                path: '/disassemblyOrder',
                name: 'disassemblyOrder',
                component: () => import('../views/house/disassemblyOrder.vue')
            },
            {
                path: '/otherInbound',
                name: 'otherInbound',
                component: () => import('../views/house/otherInbound.vue')
            },
            {
                path: '/otherOutbound',
                name: 'otherOutbound',
                component: () => import('../views/house/otherOutbound.vue')
            },
            {
                path: '/transferOutbound',
                name: 'transferOutbound',
                component: () => import('../views/house/transferOutbound.vue')
            },
            {
                path: '/batchInventory',
                name: 'batchInventory',
                component: () => import('../views/highReports/batchInventory.vue')
            },
            {
                path: '/IncomeAndExpenseItem',
                name: 'IncomeAndExpenseItem',
                component: () => import('../views/highReports/IncomeAndExpenseItem.vue')
            },
            {
                path: '/multiAttributeInventory',
                name: 'multiAttributeInventory',
                component: () => import('../views/highReports/multiAttributeInventory.vue')
            },
            {
                path: '/negativeInventoryStatistics',
                name: 'negativeInventoryStatistics',
                component: () => import('../views/highReports/negativeInventoryStatistics.vue')
            },
            {
                path: '/performanceCommission',
                name: 'performanceCommission',
                component: () => import('../views/highReports/performanceCommission.vue')
            },
            {
                path: '/profitReport',
                name: 'profitReport',
                component: () => import('../views/highReports/profitReport.vue')
            },
            {
                path: '/receiptAndPayment',
                name: 'receiptAndPayment',
                component: () => import('../views/highReports/receiptAndPayment.vue')
            },
            {
                path: '/salesProfit',
                name: 'salesProfit',
                component: () => import('../views/highReports/salesProfit.vue')
            },
            {
                path: '/salesProportion',
                name: 'salesProportion',
                component: () => import('../views/highReports/salesProportion.vue')
            },
            {
                path: '/salesRanking',
                name: 'salesRanking',
                component: () => import('../views/highReports/salesRanking.vue')
            },
            {
                path: '/serialNumberStatistics',
                name: 'serialNumberStatistics',
                component: () => import('../views/highReports/serialNumberStatistics.vue')
            },
            {
                path: '/expenseDocument',
                name: 'expenseDocument',
                component: () => import('../views/financial/expenseDocument.vue')
            },
            {
                path: '/fixedAssets',
                name: 'fixedAssets',
                component: () => import('../views/financial/fixedAssets.vue')
            },
            {
                path: '/IncomeDocument',
                name: 'IncomeDocument',
                component: () => import('../views/financial/IncomeDocument.vue')
            },
            {
                path: '/paymentDocument',
                name: 'paymentDocument',
                component: () => import('../views/financial/paymentDocument.vue')
            },
            {
                path: '/receiptDocument',
                name: 'receiptDocument',
                component: () => import('../views/financial/receiptDocument.vue')
            },
            {
                path: '/receiveAdvancePayment',
                name: 'receiveAdvancePayment',
                component: () => import('../views/financial/receiveAdvancePayment.vue')
            },
            {
                path: '/transferDocument',
                name: 'transferDocument',
                component: () => import('../views/financial/transferDocument.vue')
            },
            {
                path: '/commodityCategory',
                name: 'commodityCategory',
                component: () => import('../views/commodity/commodityCategory.vue')
            },
            {
                path: '/commodityInformation',
                name: 'commodityInformation',
                component: () => import('../views/commodity/commodityInformation.vue')
            },
            {
                path: '/measurementUnit',
                name: 'measurementUnit',
                component: () => import('../views/commodity/measurementUnit.vue')
            },
            {
                path: '/multiAttribute',
                name: 'multiAttribute',
                component: () => import('../views/commodity/multiAttribute.vue')
            },
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
